class Link < ActiveRecord::Base
  validates_presence_of :title, :url
  belongs_to :blog
  has_many :votes
  
  after_create :bump!
  
  def bump!
    update_attribute(:bumped_at, Time.now)
  end
  
end
